package com.ihr360.excel.service;

import com.ihr360.authority.embed.base.entity.AuthStaffDataRequest;
import com.ihr360.excel.service.fallback.Ihr360StaffApiServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author richey
 */
@FeignClient(name = "irenshi-staff-api-provider", fallback = Ihr360StaffApiServiceFallback.class)
public interface Ihr360StaffApiService {


    @RequestMapping(value = "/staff/auth/getCanAccessStaffIdList", method = RequestMethod.POST)
    List<String> getCanAccessStaffIdList(@RequestParam(value = "companyId") String companyId,
                                         @RequestParam(value = "userId") String userId,
                                         @RequestBody AuthStaffDataRequest authStaffDataRequest);


}
